package com.turing.post.salesmanage.util;

import java.math.BigInteger;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;

/**
 * 销售单状态迁移明业务接口
 * 
 * @author zxp
 * @Dec 23, 2012
 */
@Remote
@Local
public interface SaleOrderActionDetailDao {

	/**
	 * 销售单状态迁移明细插入
	 * 
	 * @param saleOrderActionDetail
	 *            销售单状态迁移明细
	 * @throws PCPSApplicationException
	 */
	public void insertSaleOrderActionDetail(
			SaleOrderActionDetail saleOrderActionDetail)
			throws PCPSApplicationException;

	/**
	 * 分页查询销售单状态迁移明细列表
	 * 
	 * @param saleOrderId
	 *            销售单号
	 * @param page
	 *            页码
	 * @return 销售单状态迁移明细列表
	 */
	public List<SaleOrderActionDetail> getSaleOrderActionDetailList(
			String saleOrderId, Integer page);

	/**
	 * 查询销售单状态迁移明细记录数
	 * 
	 * @param saleOrderId
	 *            销售单编号
	 * @return 记录数
	 */
	public BigInteger getSaleOrderActionDetailTotal(String saleOrderId);
}
